<?php

namespace Addons\Demo;

use Coldwind\Addon;

class DemoAddon extends Addon {

    public $info = array(
        'name' => 'Demo',
        'title' => 'Demo',
        'description' => '示例插件',
        'author' => 'ZXZ',
        'version' => '0.1',
        'status' => 1, //默认是否启用
    );

    public function demo_hook() {
        echo '<em>demo addon</em>';
    }

    public function install() {
        $this->registerHook('demo_hook');
    }

    public function uninstall() {
        
    }

}
